import Vue from 'vue'
import App from './App.vue'
import router from './router'



import 'lib-flexible/flexible'

// 导入axios模块
import axios from "axios"
//基于axios的vue-axios
import VueAxios from "vue-axios"

//从vant组件库导入图标组件
import {
     Icon,
     Search,
     PullRefresh,
     Tab, Tabs,
     Swipe, SwipeItem ,
     Tabbar, TabbarItem,
     Sidebar,SidebarItem,
     NavBar,
    
  } from 'vant';

//全局注册
Vue
.use(Sidebar)
.use(SidebarItem)
 .use(Icon)
 .use(Search)
 .use(Tab)
 .use(Tabs)
  .use(Swipe)
  .use(SwipeItem)
  .use(Tabbar)
  .use(TabbarItem)
  .use(PullRefresh)
  .use(NavBar)
;


//注册vue-axios,就可以使用组件实例化去调用axios 用的时候直接this.axios()
//参数有很多
Vue.use(VueAxios,axios)

import { Button } from 'vant';

Vue.use(Button);

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
